package com.bw.zg3park2212.Staff

import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.bw.base.mvvm.BaseActivity
import com.bw.zg3park2212.databinding.ActivityStaffXiangBinding
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
@Route(path = "/app/StaffXiangActivity")
class StaffXiangActivity : BaseActivity<ActivityStaffXiangBinding,StaffViewModel>() {
    @Autowired
    @JvmField
     var staid=""
    override fun intitView() {
        ARouter.getInstance().inject(this)
        viewmodel.getstaffxing(staid.toInt())
    }

    override fun intitData() {
        viewmodel.staffXiangSuccse.observe(this){
            binding.name.text="企业名称:  "+it.name
            binding.industryType.text="行业类型:  "+it.industryType
            binding.address.text="所在地址:  "+it.address
            binding.legalRepresentative.text="法人代表:  "+it.legalRepresentative
            binding.contactInfo.text="联系方式:  "+it.contactInfo
            binding.status.text="企业状态:  "+it.status
            binding.stockName.text="股票名称:  "+it.stockName
            binding.stockCode.text="股票代码:  "+it.stockCode
            if (it.listed==false){
                binding.listed.text="是否上市:  未上市"
            }else{
                binding.listed.text="是否上市:  已上市"
            }
        }
    }

}